/*
 * @Descripttion: 后台管理系统
 * @version: 1.0
 * @Author: 狸猫
 * @Date: 2024-04-08 11:27:43
 * @LastEditors: 赛罗
 * @LastEditTime: 2024-05-25 17:47:26
 */
import request from "@/utils/request";

// 查询价格日历列表
export function listByAllocation(query) {
  return request({
    url: "/enterprise/apartment/calendarPrice/listByAllocation",
    method: "get",
    params: query,
  });
}

// 单个添加价格日历
export function calendarPrice(data) {
  return request({
    url: "/enterprise/apartment/calendarPrice",
    method: "post",
    data: data,
  });
}

// 单个编辑价格日历
export function putCalendarPrice(data) {
  return request({
    url: "/enterprise/apartment/calendarPrice",
    method: "put",
    data: data,
  });
}

// 批量添加价格日历
export function editBatch(data) {
  return request({
    url: "/enterprise/apartment/calendarPrice/editBatch",
    method: "put",
    data: data,
  });
}

// 查询价格日历列表
export function listAllocation(query) {
  return request({
    url: "/enterprise/apartment/allocation/listByAllocation",
    method: "get",
    params: query,
  });
}

